package com.example.demo.fruits;

import lombok.Data;


@Data
public class Strawberry extends Fruits{
    public Strawberry(int unitPrice,int weight){
        this.setUnitPrice(unitPrice);
        this.setWeight(weight);
    }

    public Strawberry(int unitPrice,int weight,double discount){
        this.setUnitPrice(unitPrice);
        this.setWeight(weight);
        this.setWeight(weight);
    }

    public Strawberry(){
    }

    @Override
    public double sum(){
        return super.sum();
    }
}
